import request from '@/utils/request'
// 查询 组织架构
export function companyDepartment() {
  return request({
    url: '/company/department'
  })
}
// 获取员工简易列表
export function sysUserSimple() {
  return request({
    url: '/sys/user/simple'
  })
}

// 新增部门
// resetFul规范：增(post) 删(delete)  改(put)  查（get）
export function companyDepartmentPost(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}
// 删除部门
export function companyDepartmentDelete(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'delete'
  })
}
// 修改部门
export function companyDepartmentPut(data) {
  return request({
    url: `/company/department/${data.id}`,
    method: 'put',
    data
  })
}
